﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsIndex.ascx.cs" Inherits="Control_News_NewsIndex" %>
<!-- BEGIN UPDATE CODE HTML 18.5.2012: replace old code with this new code --->
<div class="news-hot">
    <div class="swicher-paging">
        <p>
            <%--<a href="#" class="selected" id="link1"><%#Container.ItemIndex + 1%></a> --%>
           
        </p>
    </div>
    <asp:Repeater ID="repNews" runat="server">
        <ItemTemplate>
            <div id="content<%#Container.ItemIndex + 1 %>">
                <img src='<%# !string.IsNullOrEmpty(Eval("Photo").ToString()) ? Eval("Photo").ToString() : "img/img-07.png" %>'
                    width="350" height="244" />
                <p class="title">
                    <a href='Control/News/Detail.aspx?NewsId=<%#Eval("Id")%>'>
                        <%# Eval("Title")%></a></p>
                <p>
                    <%#SplitString(Eval("Absolute").ToString(),40)%>
                </p>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
<!-- END UPDATE CODE HTML 18.5.2012 : replace old code with this new code --->
